package com.mcr.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mcr.reggie.dto.SetmealDto;
import com.mcr.reggie.entity.Setmeal;

import java.util.List;

public interface SetmealService extends IService<Setmeal> {
    /**
     * 新增套餐
     */
    public void saveSetmealAndSetmealDish(SetmealDto setmealDto);
    /**
     * 删除套餐和套餐菜品关联
     */
    public void deleteSetmealAndSetmealDish(List<Long> ids);

    public SetmealDto getSetmealDtoById(Long id);

    public void updateData(SetmealDto setmealDto);

    public void updateStatus(Integer status, String[] ids);

    Page<SetmealDto> getPage(int page, int pageSize, String name);

    List<Setmeal> getSetmealList(Setmeal setmeal);
}
